package com.transmit.core;

/**
 * @author: wb
 * @date: 2018/1/3
 */
public enum ErrorEnum {
    /*
    * 错误信息
    * */
    E_400(400, "请求处理异常，请稍后再试"),
    E_500(500, "服务器内部错误"),
    E_404(404, "请求路径不存在"),
    E_401(401, "权限不足");

    private Integer errorCode;

    private String errorMsg;

    ErrorEnum() {
    }

    ErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}

